<!DOCTYPE html>
<html>
<head>
    <title>日新网 - 早报</title>

    <meta name="keywords" content="{$seo_keywords}"/>
    <meta name="description" content="{$seo_description}">
    <link rel="icon" href="/favicon.ico" type="image/x-icon">
    <link rel="shortcut icon" href="/favicon.ico"/>
    <link rel="bookmark" href="/favicon.ico"/>
    <tc_include file="Public:head"/>

    <link href="/themes/simplebootx/Public/assets/css/index/style.css?v={$SOURCE_VERSION}" rel="stylesheet"/>
    <link href="/themes/simplebootx/Public/assets/css/index/skitter.css" rel="stylesheet"/>
    <style>

        .ellipsis3 {overflow: hidden; text-overflow:ellipsis; display: -webkit-box; -webkit-line-clamp: 3;-webkit-box-orient: vertical;}
        .morning_ground {
            height: 100%;
            overflow: hidden;
            width: 1190px;
            margin: 0 auto;
            min-height: 600px;
        }
        .morning_paper {
            float: left;
            margin:40px 22px 0!important;
        }
        .morning_paper a {
            color: #fff;
        }
        .morning_paper  .more {
            display: none;
        }
        .morning_ground a {
            cursor: pointer;
            display: block;
        }

        /*日新早报*/
        .morning_paper {
            width: 350px;
            height: 300px;
            margin: 90px auto 0;
            /*background: url("/public/images/morning_bcg/morning_bcg01.jpg") center no-repeat;*/
            -webkit-background-size: 350px 300px;
            background-size: 350px 300px;
            color: #fff;
        }

        .morning_paper .top {
            padding-top: 20px;
            height: 120px;
            width: 100%;
            overflow: hidden;
        }
        .morning_paper .top span {
            float: left;
            font-weight: bolder;
        }
        .morning_paper .time1 {
            font-size: 20px;
            margin-left: 24px;
        }
        .morning_paper .line {
            height: 50px;
            border-left: 1px dashed #FFFFFF;
            margin-left: 4px;
            margin-top: -5px;
            transform:rotate(42deg);
            -o-transform:rotate(42deg);
            -moz-transform:rotate(42deg);
            -webkit-transform:rotate(42deg);
        }
        .morning_paper .time2 {
            font-size: 48px;
            margin-top: 34px;
            margin-left: -4px;
        }
        .morning_paper .week {
            font-size: 12px;
            margin-left: 4px;
        }
        .morning_paper .more {
            color: #fff;
            float: right;
            width: 48px;
            height: 20px;
            margin-right: 16px;
            background:url("/public/images/morning_bcg/icon/more.png") no-repeat;
        }
        .morning_paper h2 {
            font-size: 32px;
            font-weight: bolder;
            color: #fff;
            letter-spacing: 3px;
            line-height: 32px;
            margin-left: 24px;
        }
        .morning_paper .text {
            font-size: 16px;
            color: #fff;
            line-height: 24px;
            margin: 28px 22px 0;
            max-height:72px;
        }
    </style>
</head>
<body style="padding-top: 50px;">

<tc_include file="Public:nav"/>

<!--日新早报-->
<div class="morning_ground">

    <php>
        $weekarray = array("日","一","二","三","四","五","六");
    </php>
    <volist name="lists" id="vo">
        <php>
            $post_date  = strtotime($vo['post_date']);
            $week       = $weekarray[date('w', $post_date)];
        </php>
        <div class="morning_paper" style="background-image: url('{$vo.back_img}')">
            <a href="{:U('Portal/Article/daily_report_detail', ['id' => $vo['id']])}">
                <div class="top">
                    <span class="time1">{:date('m', $post_date)}</span>
                    <span class="line"></span>
                    <span class="time2">{:date('d', $post_date)}</span>
                    <span class="week">星期{$week}</span>
                </div>
                <h2>日新早报</h2>
                <p class="text ellipsis3">
                    <a href="javascript:;">{$vo.post_title}</a>
                </p>
            </a>
        </div>
    </volist>
</div>
<div style="width:110px;height: 30px;border-radius: 15px;border: 1px solid #C8161D; color: #C8161D;font-size: 15px;text-align: center;
                line-height: 30px;margin-left: 350px; " class="js-infinite-scroll-loading text-center fontmsyhbd">更多</div>
<div id="nextpage"></div>

<tc_include file="Public:footer"/>
<!-- JavaScript -->
<tc_include file="Public:scripts"/>
<script src="__TMPL__Public/assets/js/jquery.infiniteScroll.js"></script>
<script>
    $(function () {
        // 加载更多
        $('#nextpage').infiniteScroll({
            loading:'.js-infinite-scroll-loading',
            total_pages:{$total_page},
            success:function(content){
                var $items = $(content).find('.morning_paper');
                if ($items.length > 0) {
                    $('.morning_ground').append($items);
                }
            }
        });
    })
</script>

</body>
</html>